<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="UTF-8">
    <title>文件上传</title>
    <script src="/static/js/test.js" type="text/javascript"></script>
</head>
<body>
<!--文件上传的话，enctype的类型必须是multipart/form-data-->
<form enctype="multipart/form-data" method="post" action="/upload">
    文件:<input type="file" name="head_img"/>
    姓名:<input type="text" name="name"/>
    <input type="submit" value="上传"/>
</form>

</body>
</html>